<script>
import axios from "axios";

export default {
  name: "riskCom",
  data(){
    return {
      riskName:"评估中请等候....",
    }
  },
  mounted() {
    axios.get("http://localhost:8080/getUserByToken",{
      headers:{
        Authorization: localStorage.getItem("token")
      }
    }).then((response) => {
     if (response.data.data.riskLevel==0) {
       setTimeout(()=>{
         this.riskName = "安全";
       },3000)

     }

    })
  }

}
</script>

<template>
  <div class="h-[calc(80%)] bg-red-400 flex flex-wrap">
    <el-card style="width:100%;height: 100%;" >
      <template #header>风险评估表</template>
        <div class="text-5xl">您的风险等级为:</div>
         <div class="text-center text-6xl mt-20 text-red-700">{{riskName}}</div>
    </el-card>
  </div>
</template>

<style scoped>

</style>